package it.uniroma2.wsdl;

public class PartnerLinkType_WSDL {

//	private Service serviceRef;
	private String name;
	private String partnerLinkTag = "plnk:partnerLinkType";
	private Role_WSDL role;
	
	public PartnerLinkType_WSDL(String name, String roleName, String portType){
		this.name = name;
		this.role = new Role_WSDL(roleName, portType);
	}
	
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}
	
	public String toWSDL(){
		String output = "<" + this.partnerLinkTag + " name=\"" + this.name + "\">\n";
		
		output = output + this.role.toWSDL();
		
		output = output + "</" + this.partnerLinkTag + ">\n";
		
		return output;
	}
}
